<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="base::header">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body class="smoke-container">
<div style="margin: 10px; background-color: white">
    <div>
        <button type="button" class="layui-btn" id="add_button_id">新增</button>
        <button type="button" class="layui-btn" id="update_button_id">编辑</button>
        <button type="button" class="layui-btn" id="reset_pwd_button_id">重置密码</button>
        <button type="button" class="layui-btn" id="delete_button_id">删除</button>
    </div>
    <div id="user_table_id" lay-filter="user_table_id">
    </div>
</div>

<script type="text/html" id="stateTemplate">
    {{#
     var checked = d.state == 'enabled' ? 'checked' : '';
    }}

    <form class="layui-form">
        <div class="layui-form-item">
            <div>
                <input type="checkbox" name="state" {{ checked }} lay-skin="switch" data-id="{{d.id}}" lay-text="启用|禁用">
            </div>
        </div>
    </form>
</script>

<script th:src="@{/js/admin/user.js}"></script>
</body>
</html>